﻿using System.Data.Entity.ModelConfiguration;
using QDT.Core.Members;

namespace QDT.Core.MSData.Mapping.Members
{
    //江熙帮忙把数据结构调整，并改正映射文件
    public class UserLogMapping : EntityTypeConfiguration<UserTransLog>
    {
        public UserLogMapping() {
            HasKey(x => x.ID);

            Property(x => x.Info).HasColumnName("log_info");

            Property(x => x.Time).HasColumnName("log_time");

            Property(x => x.UserID).HasColumnName("user_id");

//            Property(x => x.OperateUserID).HasColumnName("log_user_id");

//            Property(x => x.OperateAdminID).HasColumnName("log_admin_id");

            Property(x => x.Money).HasColumnName("money");

            Property(x => x.InnerTrade).HasColumnName("Trade");

            Ignore(x=>x.Trade);

            Property(x => x.LockMoney).HasColumnName("lock_money");

            ToTable(DB.TPref("user_log"));
        }
    }
}
